import os

def get_procwd(proname):
    path = os.path.abspath(".")
    cwd = path[:path.find(proname)] + proname
    return cwd


# 全局变量 当前项目根目录绝对路径
base_path = get_procwd("woniu_ui_v2")
print(base_path)